package com.my.chapter7;

import java.util.Random;

public class practice18 {
    public static void main(String[] args) {
        Type4 t1 = new Type4();
        Type4 t2 = new Type4();
        System.out.println(t1.toString());
        System.out.println(t2.toString());
    }
}

class Type4{
    private static Random rand = new Random();
    private final int val_1 = rand.nextInt(10);
    private static final int VAL_2 = rand.nextInt(10);

    @Override
    public String toString() {
        return "Type4{" +
                "val_1=" + val_1 +
                "; VAL_2=" + VAL_2 +
                '}';
    }
}
